package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 租户管理对象 sys_tenant
 * 
 * @author likun
 * @date 2020-09-19
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@TableName("sys_tenant")
public class SysTenant extends BaseEntity implements Serializable{
    private static final long serialVersionUID = 1L;

    /** 租户id */
    @TableId(value = "id")
    private Long id;

    /** 初始部门id */
    @TableField(value = "dept_id")
    private Long deptId;

    /** 初始用户id */
    @TableField(value = "user_id")
    private Long userId;

    /** 初始角色id */
    @TableField(value = "role_id")
    private Long roleId;

    /** 用户账号 */
    @Excel(name = "用户账号")
    @TableField(value = "user_name")
    private String userName;

    /** 密码 */
    @TableField(value = "password")
    private String password;

    /** 盐加密 */
    @TableField(value = "salt")
    private String salt;

    /** 公司 */
    @Excel(name = "公司")
    @TableField(value = "company")
    private String company;

    /** 用户昵称 */
    @Excel(name = "用户昵称")
    @TableField(value = "nick_name")
    private String nickName;

    /** 手机号 */
    @Excel(name = "手机号")
    @TableField(value = "mobile")
    private String mobile;

    /** 用户邮箱 */
    @Excel(name = "用户邮箱")
    @TableField(value = "email")
    private String email;


}
